#!/bin/bash

function run_case
{ 
        source=$1
        section=$2
        command=$3
        input=$4

        echo
        echo "[INFO] Run $source ...... $section"
        if [ "$input" ]; then
                ${command} < ${input}
        else
                ${command}
        fi
}


run_case "hello.c"    "P40"     "./hello.exe"
